I have yet another DXL question. I have a script that loops through the objects in a baseline. Within this loop, I am trying to get the System attribute Object Number, but when I run the script I get an error saying that it's an unknown Object attribute. Is this attribute protected for some reason? I'm able to get the Absolute Number, so I figured I should be able to get the Object Number.
Here's the snippet of my code (bm2 is the module I retrieve earlier in the script):
for oObj in document(bm2) do {
int absNum = oObj."Absolute Number";
string objNum = oObj."Object Number";
//Do some stuff with the object based on the values above.
}
The error occurs on the 2nd line in the for loop: unknown Object attribute(Object Number).
Chris Cote Christopher Cote - Fri Oct 28 12:56:54 EDT 2016 |
Re: Issue trying to get Object Number try: number oObj |